package com.rentdvd.ws;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
import javax.jws.soap.SOAPBinding.Use;
 
//Service Endpoint Interface
@WebService
@SOAPBinding(style = Style.DOCUMENT, use= Use.LITERAL) //optional
public interface RentDVD {
	
	@WebMethod 
	public boolean register(String name, String password);
	
	@WebMethod 
	public boolean authenticate(String name, String password);
	
	@WebMethod
	public String getCatalog();
	
	@WebMethod
	public String recommendMovie(String username, String city);
	
	@WebMethod
	public boolean addWatchedFilms(String username, Integer[] filmArray);
	
	@WebMethod
	public String getWatchedMoviesAsXML(String username);
}